package com.lawyer.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 用户咨询表
 * </p>
 *
 * @author D.Wzq
 * @since 2018-07-18
 */
@TableName("t_consult_user_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConsultUserInfo extends Model<ConsultUserInfo> {

    private static final long serialVersionUID = 1L;

	@TableId(value="consult_user_id", type= IdType.AUTO)
	private Long consultUserId;
    /**
     * 律师标识
     */
	private Long lawyerId;
    /**
     * 咨询手机号
     */
	private String phoneNumber;
    /**
     * 咨询类型 C001,C002....C013 参考数据字典表
     */
	private String consultType;
    /**
     * 咨询内容
     */
	private String consultContent;
    /**
     * 咨询用户所在地
     */
	private String consultAddress;
    /**
     * 是否已回复咨询
     */
	private Integer isReplyConsult;
    /**
     * 是否微信授权
     */
	private Integer isWechatAuthorization;
    /**
     * 微信OpenId
     */
	private String openId;
    /**
     * 微信附件地址
     */
	private String wechatHeaderFilePath;
	private String wechatUserName;
    /**
     * 是否删除 1：是  0：否
     */
	private Integer isDelete;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private Date updateTime;

	public Long getConsultUserId() {
		return consultUserId;
	}

	public void setConsultUserId(Long consultUserId) {
		this.consultUserId = consultUserId;
	}

	public Long getLawyerId() {
		return lawyerId;
	}

	public void setLawyerId(Long lawyerId) {
		this.lawyerId = lawyerId;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getConsultType() {
		return consultType;
	}

	public void setConsultType(String consultType) {
		this.consultType = consultType;
	}

	public String getConsultContent() {
		return consultContent;
	}

	public void setConsultContent(String consultContent) {
		this.consultContent = consultContent;
	}

	public String getConsultAddress() {
		return consultAddress;
	}

	public void setConsultAddress(String consultAddress) {
		this.consultAddress = consultAddress;
	}

	public Integer getIsReplyConsult() {
		return isReplyConsult;
	}

	public void setIsReplyConsult(Integer isReplyConsult) {
		this.isReplyConsult = isReplyConsult;
	}

	public Integer getIsWechatAuthorization() {
		return isWechatAuthorization;
	}

	public void setIsWechatAuthorization(Integer isWechatAuthorization) {
		this.isWechatAuthorization = isWechatAuthorization;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getWechatHeaderFilePath() {
		return wechatHeaderFilePath;
	}

	public void setWechatHeaderFilePath(String wechatHeaderFilePath) {
		this.wechatHeaderFilePath = wechatHeaderFilePath;
	}

	public String getWechatUserName() {
		return wechatUserName;
	}

	public void setWechatUserName(String wechatUserName) {
		this.wechatUserName = wechatUserName;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.consultUserId;
	}

}
